Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check destination address for SC wallets #2105

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

dewanshparashar
Copy link
Contributor

Closes FS-1035

@cla-bot cla-bot bot added the cla-signed label Nov 28, 2024
Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Dec 23, 2024 1:32pm

@dewanshparashar dewanshparashar changed the title feat: check destination address for smart contract wallets feat: check destination address for SC wallets Nov 28, 2024
fionnachan
fionnachan previously approved these changes Dec 16, 2024
<div className="mb-4">
<p className="pb-2">
You are attempting to deposit funds to the same address{' '}
{shortenAddress(destinationAddress)} on {networkName}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to have a link to the address on the explorer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

isDepositMode &&
areSenderAndCustomDestinationAddressesEqual
) {
await confirmCustomDestinationAddressForSCWallets()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same on L626. Currently if user click on cancel or close, we proceed as if user click on confirm. We should check for the returned value here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@spsjvc spsjvc self-requested a review December 17, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants